<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
	        + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view>
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
		<head>
			<base href="<%=basePath%>" />
			<meta http-equiv="pragma" content="no-cache" />
			<meta http-equiv="cache-control" content="no-cache" />
			<meta http-equiv="expires" content="0" />
			<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
			<meta http-equiv="description" content="This is my page" />
			<title><h:outputText value="#{$bundle.title_new}" /></title>
		</head>
		<body>
			<h:messages />
			<h:form>
				<table>

					<tr>
						<td><h:outputLabel value="#{$bundle.label_login_name}" /></td>
						<td><h:inputText value="#{createUser.user.loginName}" styleClass="inputText" /></td>
					</tr>

					<tr>
						<td><h:outputLabel value="#{$bundle.label_password}" /></td>
						<td><h:inputText value="#{createUser.user.password}" styleClass="inputText" /></td>
					</tr>

					<tr>
						<td><h:outputLabel value="#{$bundle.label_user_name}" /></td>
						<td><h:inputText value="#{createUser.user.userName}" styleClass="inputText" /></td>
					</tr>
					
					<tr>
						<td><h:outputLabel value="#{$bundle.label_user_type}" /></td>
						<td><h:inputText value="#{createUser.user.userType}" styleClass="inputText" /></td>
					</tr>
					
					<tr>
						<td>
							<h:commandButton value="#{$bundle.label_submit}" styleClass="plat" actionListener="#{$.saveUser}" action="r:listUser" />
						</td>
						<td>
							<h:commandButton value="#{$bundle.label_return}" styleClass="plat" action="r:listUser" immediate="true" />
						</td>
					</tr>
				</table>
			</h:form>
		</body>
	</html>
</f:view>
